@import "../_style/base.less";

.wdmb-button {
    display: block;
    outline: 0 none;
    -webkit-appearance: none;
    box-sizing: border-box;
    padding: 0;
    text-align: center;
    font-size: 18*@hd;
    height: 47*@hd;
    line-height: 47*@hd;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: nowrap;
    color: #000;
    background-color: #fff;
    border-radius: 5*@hd;

    &.wdmb-button-small {
        font-size: 13*@hd;
        height: 30*@hd;
        line-height: 30*@hd;
        padding: 0 15*@hd;
    }

    &.wdmb-button-inline {
        display: inline-block;
        padding: 0 15*@hd;
    }

    &.wdmb-button-disabled {
        color: rgba(0, 0, 0, 0.3);
        opacity: 0.6;
    }

    &.wdmb-button-ghost {
        background-color: rgba(0, 0, 0, 0);
        border: 1px solid #000;
    }

    &.wdmb-button-active {
        background-color: #ddd;
    }

    &.wdmb-button-primary {
        color: #fff;
        background-color: #108ee9;
        border-radius: 5*@hd;

        &.wdmb-button-disabled {
            color: rgba(255, 255, 255, 0.6);
            opacity: 0.4;
        }

        &.wdmb-button-active {
            color: rgba(255, 255, 255, 0.3);
            background-color: #0e80d2;
        }

        &.wdmb-button-ghost {
            background-color: rgba(0, 0, 0, 0);
            border: 1px solid #108ee9;
            color: #108ee9;

            &.wdmb-button-active {
                color: rgba(16, 142, 233, 0.6);
                background-color: transparent;
                border: 1PX solid #108ee999;
                border-radius: 5*@hd;
            }
        }
    }

    &.wdmb-button-warning {
        color: #fff;
        background-color: #e94f4f;

        &.wdmb-button-disabled {
            color: rgba(255, 255, 255, 0.6);
            opacity: 0.4;
        }

        &.wdmb-button-active {
            color: rgba(255, 255, 255, 0.3);
            background-color: #d24747;
        }

        &.wdmb-button-ghost {
            background-color: rgba(0, 0, 0, 0);
            border: 1px solid #d24747;
            color: #d24747;

            &.wdmb-button-active {
                color: #d38282;
                background-color: transparent;
                border: 1PX solid #d24747;
                border-radius: 5*@hd;
            }
        }
    }
}